using System;
using System.ComponentModel;
using System.Drawing;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using ICP_MS.Plugin.Advance.Properties;

namespace ICP_MS.Plugin.Advance;

public class FormPower : Form
{
	private bool quit = false;

	private Image gray;

	private Image green;

	private Image red;

	private Image yellow;

	private bool Limit = true;

	private IContainer components = null;

	private GroupBox gbPower;

	private GroupBox gbP5;

	private PictureBox ledP5;

	private RadioButton rdbtnCloseP5;

	private RadioButton rdbtnOpenP5;

	private GroupBox gbP3;

	private PictureBox ledP3;

	private RadioButton rdbtnCloseP3;

	private RadioButton rdbtnOpenP3;

	private GroupBox gbP7;

	private PictureBox ledP7;

	private RadioButton rdbtnCloseP7;

	private RadioButton rdbtnOpenP7;

	private GroupBox gbP6;

	private PictureBox ledP6;

	private RadioButton rdbtnCloseP6;

	private RadioButton rdbtnOpenP6;

	private GroupBox gbP4;

	private PictureBox ledP4;

	private RadioButton rdbtnCloseP4;

	private RadioButton rdbtnOpenP4;

	private GroupBox gbP8;

	private PictureBox ledP8;

	private GroupBox gbP2;

	private PictureBox ledP2;

	private RadioButton rdbtnCloseP2;

	private RadioButton rdbtnOpenP2;

	private GroupBox gbP1;

	private PictureBox ledP1;

	private RadioButton rdbtnCloseP1;

	private RadioButton rdbtnOpenP1;

	private GroupBox gbP9;

	private PictureBox ledP9;

	private RadioButton rdbtnCloseP9;

	private RadioButton rdbtnOpenP9;

	private GroupBox gbP13;

	private PictureBox ledP13;

	private RadioButton rdbtnCloseP13;

	private RadioButton rdbtnOpenP13;

	private GroupBox gbP14;

	private PictureBox ledP14;

	private RadioButton rdbtnCloseP14;

	private RadioButton rdbtnOpenP14;

	private GroupBox gbP12;

	private PictureBox ledP12;

	private RadioButton rdbtnCloseP12;

	private RadioButton rdbtnOpenP12;

	private GroupBox gbP15;

	private PictureBox ledP15;

	private RadioButton rdbtnCloseP15;

	private RadioButton rdbtnOpenP15;

	private GroupBox gbP10;

	private PictureBox ledP10;

	private RadioButton rdbtnCloseP10;

	private RadioButton rdbtnOpenP10;

	private GroupBox groupBox2;

	private Button btnVaccum;

	private Button btnPowerOn;

	private GroupBox groupBox1;

	private Button btnPowerOff;

	private Button btnVaccumOff;

	private GroupBox groupBox4;

	private GroupBox groupBox3;

	private StatusStrip statusStrip1;

	private ToolStripProgressBar ProgressBar;

	private ToolStripStatusLabel tsslStatus;

	private BackgroundWorker bgWorker;

	public FormPower()
	{
		InitializeComponent();
	}

	private void FormPower_Load(object sender, EventArgs e)
	{
		base.WindowState = FormWindowState.Maximized;
		SetupVersion();
		gray = Resources.led_Gray;
		green = Resources.led_Green;
		red = Resources.led_Red;
		yellow = Resources.led_Yello;
		RefreshPowers();
		Task.Factory.StartNew(delegate
		{
			while (!quit)
			{
				UpdatePowers();
				Thread.Sleep(1000);
			}
		});
		UserManager.UserChanged += UserManager_UserChanged;
		PermissionManagement();
	}

	private void UserManager_UserChanged(object sender, EventArgs e)
	{
		PermissionManagement();
	}

	private void PermissionManagement()
	{
		if (UserManager.CurrentUser.authority <= 1)
		{
			foreach (GroupBox gb2 in groupBox1.Controls)
			{
				foreach (object rb in gb2.Controls)
				{
					if (rb is RadioButton)
					{
						((RadioButton)rb).Visible = false;
					}
				}
			}
			Limit = false;
			return;
		}
		foreach (GroupBox gb in groupBox1.Controls)
		{
			foreach (object rb2 in gb.Controls)
			{
				if (rb2 is RadioButton)
				{
					((RadioButton)rb2).Visible = true;
				}
			}
		}
		Limit = true;
	}

	private void SingleClick(object sender, EventArgs e)
	{
		if (UserManager.CurrentUser.authority <= 1)
		{
			return;
		}
		PictureBox led = sender as PictureBox;
		if (led == ledP1)
		{
			PowerManager.Instance.CANET = rdbtnOpenP1.Checked;
			if (!rdbtnOpenP1.Checked)
			{
				RFManager.rfs.HVP = 0f;
				RFManager.rfs.HVN = 0f;
				RFManager.rfs.Gate = 0f;
				if (Detector.detectorConfig.IsNewDetector)
				{
					Detector.Instance.msDetectorRF.SetHVPNew();
					Thread.Sleep(1);
					Detector.Instance.msDetectorRF.SetHVNNew();
					Thread.Sleep(1);
					Detector.Instance.msDetectorRF.SetGateNew();
				}
				else
				{
					Detector.Instance.msDetectorRF.SetHVP();
					Thread.Sleep(1);
					Detector.Instance.msDetectorRF.SetHVN();
					Thread.Sleep(1);
					Detector.Instance.msDetectorRF.SetGate();
				}
			}
		}
		else if (led == ledP2 && Limit)
		{
			PowerManager.Instance.Interface = rdbtnOpenP2.Checked;
		}
		else if (led == ledP3)
		{
			PowerManager.Instance.Water = rdbtnOpenP3.Checked;
		}
		else if (led == ledP4)
		{
			Vacuum.Instance.NewVentOff();
			PowerManager.Instance.MC3 = rdbtnOpenP4.Checked;
		}
		else if (led == ledP5)
		{
			PowerManager.Instance.Backing = rdbtnOpenP5.Checked;
		}
		else if (led == ledP6 && Limit)
		{
			PowerManager.Instance.Plasma = rdbtnOpenP6.Checked;
		}
		else if (led == ledP7)
		{
			PowerManager.Instance.Positive24Power = rdbtnOpenP7.Checked;
		}
		else if (led == ledP9 && Limit)
		{
			if (((QuadMonitor.quad.ReadState >> 6) & 1) == 1 && rdbtnOpenP9.Checked)
			{
				QuadMonitor.Instance.On48V();
			}
			else if (((QuadMonitor.quad.ReadState >> 6) & 1) != 1 && !rdbtnOpenP9.Checked)
			{
				QuadMonitor.Instance.Off48V();
			}
		}
		else if (led == ledP10)
		{
			PowerManager.Instance.Positive24PowerDelay = rdbtnOpenP10.Checked;
		}
		else if (led == ledP12)
		{
			PowerManager.Instance.QAPower = rdbtnOpenP12.Checked;
		}
		else if (led == ledP13)
		{
			PowerManager.Instance.TurboDelay = rdbtnOpenP13.Checked;
		}
		else if (led == ledP14)
		{
			PowerManager.Instance.SemiconductorCoolerPower = rdbtnOpenP14.Checked;
		}
		else if (led == ledP15)
		{
			PowerManager.Instance.Con10Power = rdbtnOpenP15.Checked;
		}
	}

	private void SetupVersion()
	{
		gbP1.Text = Lang.Txt("FormPower.gbP1.Text");
		gbP2.Text = Lang.Txt("FormPower.gbP2.Text");
		gbP3.Text = Lang.Txt("FormPower.gbP3.Text");
		gbP4.Text = Lang.Txt("FormPower.gbP4.Text");
		gbP5.Text = Lang.Txt("FormPower.gbP5.Text");
		gbP6.Text = Lang.Txt("FormPower.gbP6.Text");
		gbP7.Text = Lang.Txt("FormPower.gbP7.Text");
		gbP8.Text = Lang.Txt("FormPower.gbP8.Text");
		gbP9.Text = Lang.Txt("FormPower.gbP9.Text");
		gbP10.Text = Lang.Txt("FormPower.gbP10.Text");
		gbP12.Text = Lang.Txt("FormPower.gbP12.Text");
		gbP13.Text = Lang.Txt("FormPower.gbP13.Text");
		gbP14.Text = Lang.Txt("FormPower.gbP14.Text");
		gbP15.Text = Lang.Txt("FormPower.gbP15.Text");
		rdbtnOpenP1.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP2.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP3.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP4.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP5.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP6.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP7.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP9.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP10.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP12.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP13.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP14.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnOpenP15.Text = Lang.Txt("FormPower.Button.Open.Text");
		rdbtnCloseP1.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP2.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP3.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP4.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP5.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP6.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP7.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP9.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP10.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP12.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP13.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP14.Text = Lang.Txt("FormPower.Button.Close.Text");
		rdbtnCloseP15.Text = Lang.Txt("FormPower.Button.Close.Text");
		groupBox1.Text = Lang.Txt("FormPower.GroupBox.Text1");
		groupBox2.Text = Lang.Txt("FormPower.GroupBox.Text2");
		groupBox3.Text = Lang.Txt("FormPower.GroupBox.Text3");
		groupBox4.Text = Lang.Txt("FormPower.GroupBox.Text4");
		btnPowerOn.Text = Lang.Txt("FormPower.GroupBox.Text5");
		btnVaccum.Text = Lang.Txt("FormPower.GroupBox.Text6");
		btnVaccumOff.Text = Lang.Txt("FormPower.GroupBox.Text7");
		btnPowerOff.Text = Lang.Txt("FormPower.GroupBox.Text8");
	}

	private void btnRefresh_Click(object sender, EventArgs e)
	{
		RefreshPowers();
	}

	private void RefreshPowers()
	{
		rdbtnOpenP1.Checked = PowerManager.powerStatus.ReadP1;
		rdbtnOpenP2.Checked = PowerManager.powerStatus.ReadP2;
		rdbtnOpenP3.Checked = PowerManager.powerStatus.ReadP3;
		rdbtnOpenP4.Checked = PowerManager.powerStatus.ReadP4;
		rdbtnOpenP5.Checked = PowerManager.powerStatus.ReadP5;
		rdbtnOpenP6.Checked = PowerManager.powerStatus.ReadP6;
		rdbtnOpenP7.Checked = PowerManager.powerStatus.ReadP7;
		rdbtnOpenP9.Checked = ((QuadMonitor.quad.ReadState >> 6) & 1) == 1;
		rdbtnOpenP10.Checked = PowerManager.powerStatus.ReadP10;
		rdbtnOpenP12.Checked = PowerManager.powerStatus.ReadP12;
		rdbtnOpenP13.Checked = PowerManager.powerStatus.ReadP13;
		rdbtnOpenP14.Checked = PowerManager.powerStatus.ReadP14;
		rdbtnOpenP15.Checked = PowerManager.powerStatus.ReadP15;
		rdbtnCloseP1.Checked = !PowerManager.powerStatus.ReadP1;
		rdbtnCloseP2.Checked = !PowerManager.powerStatus.ReadP2;
		rdbtnCloseP3.Checked = !PowerManager.powerStatus.ReadP3;
		rdbtnCloseP4.Checked = !PowerManager.powerStatus.ReadP4;
		rdbtnCloseP5.Checked = !PowerManager.powerStatus.ReadP5;
		rdbtnCloseP6.Checked = !PowerManager.powerStatus.ReadP6;
		rdbtnCloseP7.Checked = !PowerManager.powerStatus.ReadP7;
		rdbtnCloseP9.Checked = ((QuadMonitor.quad.ReadState >> 6) & 1) != 1;
		rdbtnCloseP10.Checked = !PowerManager.powerStatus.ReadP10;
		rdbtnCloseP12.Checked = !PowerManager.powerStatus.ReadP12;
		rdbtnCloseP13.Checked = !PowerManager.powerStatus.ReadP13;
		rdbtnCloseP14.Checked = !PowerManager.powerStatus.ReadP14;
		rdbtnCloseP15.Checked = !PowerManager.powerStatus.ReadP15;
	}

	private void UpdatePowers()
	{
		try
		{
			Invoke((MethodInvoker)delegate
			{
				if (!PowerManager.powerStatus.StatusConnected)
				{
					SetUnReceived();
				}
				else
				{
					ledP1.Image = (PowerManager.powerStatus.ReadP1 ? green : gray);
					ledP2.Image = (PowerManager.powerStatus.ReadP2 ? green : gray);
					ledP3.Image = (PowerManager.powerStatus.ReadP3 ? green : gray);
					ledP4.Image = (PowerManager.powerStatus.ReadP4 ? green : gray);
					ledP5.Image = (PowerManager.powerStatus.ReadP5 ? green : gray);
					ledP6.Image = (PowerManager.powerStatus.ReadP6 ? green : gray);
					ledP7.Image = (PowerManager.powerStatus.ReadP7 ? green : gray);
					ledP8.Image = (PowerManager.powerStatus.ReadP8 ? green : gray);
					ledP9.Image = ((((QuadMonitor.quad.ReadState >> 6) & 1) == 1) ? gray : green);
					ledP10.Image = (PowerManager.powerStatus.ReadP10 ? green : gray);
					ledP12.Image = (PowerManager.powerStatus.ReadP12 ? green : gray);
					ledP13.Image = (PowerManager.powerStatus.ReadP13 ? green : gray);
					ledP14.Image = (PowerManager.powerStatus.ReadP14 ? green : gray);
					ledP15.Image = (PowerManager.powerStatus.ReadP15 ? green : gray);
				}
			});
		}
		catch
		{
		}
	}

	private void SetUnReceived()
	{
		ledP1.Image = yellow;
		ledP2.Image = yellow;
		ledP3.Image = yellow;
		ledP4.Image = yellow;
		ledP5.Image = yellow;
		ledP6.Image = yellow;
		ledP7.Image = yellow;
		ledP8.Image = yellow;
		ledP9.Image = yellow;
		ledP10.Image = yellow;
		ledP12.Image = yellow;
		ledP13.Image = yellow;
		ledP14.Image = yellow;
		ledP15.Image = yellow;
	}

	private void FormPower_FormClosing(object sender, FormClosingEventArgs e)
	{
		quit = true;
	}

	private void btnPowerOn_Click(object sender, EventArgs e)
	{
		if (MessageBox.Show(Lang.Txt("AddFormPower.SurePoweredOn"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.YesNo) != DialogResult.No)
		{
			FormWait wait = new FormWait();
			wait.Text = Lang.Txt("FormExperiment.MessageBox.SaveData.Text");
			wait.Run += PowerOn;
			wait.ShowDialog();
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("AddFormPower.PowerUpInstrument"), "", (Severity)1);
		}
	}

	private void PerformProgressStep(ProgressBar bar)
	{
		Invoke((MethodInvoker)delegate
		{
			bar.PerformStep();
		});
	}

	private void PowerOn(object sender, EventArgs e)
	{
		Invoke((MethodInvoker)delegate
		{
			ProgressBar progressBar = sender as ProgressBar;
			progressBar.Minimum = 1;
			progressBar.Maximum = 7;
			progressBar.Step = 1;
			PowerManager.Instance.Positive24PowerDelay = true;
			Thread.Sleep(1000);
			PerformProgressStep(progressBar);
			PowerManager.Instance.Positive24Power = true;
			Thread.Sleep(1000);
			PerformProgressStep(progressBar);
			PowerManager.Instance.TurboDelay = true;
			Thread.Sleep(1000);
			PerformProgressStep(progressBar);
			PowerManager.Instance.QAPower = true;
			Thread.Sleep(1000);
			PerformProgressStep(progressBar);
			QuadMonitor.Instance.On48V();
			Thread.Sleep(1000);
			PerformProgressStep(progressBar);
			PowerManager.Instance.SemiconductorCoolerPower = true;
			Thread.Sleep(1000);
			PerformProgressStep(progressBar);
			PowerManager.Instance.Con10Power = true;
			Thread.Sleep(1000);
			PerformProgressStep(progressBar);
			PowerManager.Instance.CANET = true;
		});
	}

	private void btnVaccum_Click(object sender, EventArgs e)
	{
		if (Vacuum.vacumm.ReadMode != 0)
		{
			MessageBox.Show(Lang.Txt("AddFormPower.VacuumStandbyCheck"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OKCancel);
			return;
		}
		if (btnVaccum.Text == "预抽真空" || btnVaccum.Text == "Vacuum On")
		{
			if (MessageBox.Show(Lang.Txt("AddFormPower.SurePreVacuum"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.YesNo) == DialogResult.No)
			{
				return;
			}
			if (UserManager.CurrentUser.authority > 1)
			{
				using FormSerial formSerial = new FormSerial();
				formSerial.ShowDialog();
			}
			Vacuum.Instance.NewVentOff();
			Thread.Sleep(1000);
			ProgressBar.Visible = true;
			tsslStatus.Visible = true;
			bgWorker.RunWorkerAsync();
			btnVaccum.Text = Lang.Txt("AddFormPower.CancelPreVacuum");
		}
		else if (bgWorker.IsBusy)
		{
			bgWorker.CancelAsync();
		}
		Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("FormPower.GroupBox.Text6"), "", (Severity)1);
	}

	private void Vaccum(object sender, EventArgs e)
	{
		Invoke((MethodInvoker)delegate
		{
			ProgressBar progressBar = sender as ProgressBar;
			progressBar.Minimum = 1;
			progressBar.Maximum = 100;
			progressBar.Step = 1;
			PowerManager.Instance.Backing = true;
			Thread.Sleep(1000);
			PerformProgressStep(progressBar);
			PowerManager.Instance.MC3 = true;
			Thread.Sleep(1000);
			PerformProgressStep(progressBar);
			int num = 0;
			while (Vacuum.vacumm.ReadVacuum[1] > 20.0)
			{
				Thread.Sleep(5000);
				PerformProgressStep(progressBar);
				if (num++ >= 24)
				{
					PowerManager.Instance.Backing = false;
					Thread.Sleep(1000);
					PowerManager.Instance.MC3 = false;
					Thread.Sleep(1000);
					MessageBox.Show(Lang.Txt("AddFormPower.VacuumLeakCheck"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OK);
					return;
				}
			}
			if (Vacuum.vacumm.ReadMode == 0)
			{
				Vacuum.Instance.NewVacuumOn();
			}
		});
	}

	private void btnPowerOff_Click(object sender, EventArgs e)
	{
		if (MessageBox.Show(Lang.Txt("AddFormPower.ConfirmPowerOff"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.YesNo) != DialogResult.No)
		{
			FormWait wait = new FormWait();
			wait.Text = Lang.Txt("FormExperiment.MessageBox.SaveData.Text");
			wait.Run += PowerOff;
			wait.ShowDialog();
			Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), "AddFormPower.PowerOff", "", (Severity)1);
		}
	}

	private void PowerOff(object sender, EventArgs e)
	{
		Invoke((MethodInvoker)delegate
		{
			ProgressBar progressBar = sender as ProgressBar;
			progressBar.Minimum = 1;
			progressBar.Maximum = 10;
			progressBar.Step = 1;
			if (Vacuum.vacumm.ReadMode != 0)
			{
				MessageBox.Show(Lang.Txt("AddFormPower.PleaseUnload"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OK);
			}
			else
			{
				PowerManager.Instance.MC3 = false;
				Thread.Sleep(1000);
				PerformProgressStep(progressBar);
				PowerManager.Instance.Backing = false;
				Thread.Sleep(1000);
				PerformProgressStep(progressBar);
				PowerManager.Instance.CANET = false;
				Thread.Sleep(1000);
				PerformProgressStep(progressBar);
				PowerManager.Instance.Con10Power = false;
				Thread.Sleep(1000);
				PerformProgressStep(progressBar);
				PowerManager.Instance.SemiconductorCoolerPower = false;
				Thread.Sleep(1000);
				PerformProgressStep(progressBar);
				QuadMonitor.Instance.Off48V();
				Thread.Sleep(1000);
				PerformProgressStep(progressBar);
				PowerManager.Instance.QAPower = false;
				Thread.Sleep(1000);
				PerformProgressStep(progressBar);
				PowerManager.Instance.TurboDelay = false;
				Thread.Sleep(1000);
				PerformProgressStep(progressBar);
				PowerManager.Instance.Positive24Power = false;
				Thread.Sleep(1000);
				PerformProgressStep(progressBar);
				PowerManager.Instance.Positive24PowerDelay = false;
				Thread.Sleep(1000);
				PerformProgressStep(progressBar);
			}
		});
	}

	private void btnVaccumOff_Click(object sender, EventArgs e)
	{
		if (Vacuum.vacumm.ReadMode != 2 && Vacuum.vacumm.ReadMode == 5)
		{
			MessageBox.Show(Lang.Txt("AddFormPower.PleaseBeforeVacuum"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OK);
			return;
		}
		Vacuum.Instance.NewVacuumOff();
		Log.InsertLog(Lang.Txt("AddFormIonSource.UserAction"), Lang.Txt("FormPower.GroupBox.Text7"), "", (Severity)1);
	}

	private void bgWorker_DoWork(object sender, DoWorkEventArgs e)
	{
		PowerManager.Instance.Backing = true;
		Thread.Sleep(1000);
		bgWorker.ReportProgress(1, Lang.Txt("AddFormPower.ForelinePowerOn"));
		PowerManager.Instance.MC3 = true;
		Thread.Sleep(1000);
		bgWorker.ReportProgress(2, Lang.Txt("AddFormPower.MC3PowerOn"));
		int count = 0;
		while (Vacuum.vacumm.ReadVacuum[1] > 25.0 && Vacuum.Instance.PiraniType == 1)
		{
			Thread.Sleep(5000);
			bgWorker.ReportProgress((int)(3.0 + 2.6 * (double)count), Lang.Txt("AddFormPower.WaitVacuumReach"));
			if (count++ >= 36 || bgWorker.CancellationPending)
			{
				bgWorker.ReportProgress(100, Lang.Txt("AddFormPower.Cancel"));
				e.Cancel = true;
				return;
			}
		}
		while (Vacuum.vacumm.ReadVacuum[0] > 25.0 && Vacuum.Instance.PiraniType != 1)
		{
			Thread.Sleep(5000);
			bgWorker.ReportProgress((int)(3.0 + 2.6 * (double)count), Lang.Txt("AddFormPower.WaitVacuumInter"));
			if (count++ >= 36 || bgWorker.CancellationPending)
			{
				bgWorker.ReportProgress(100, Lang.Txt("AddFormPower.Cancel"));
				e.Cancel = true;
				break;
			}
		}
	}

	private void bgWorker_ProgressChanged(object sender, ProgressChangedEventArgs e)
	{
		Invoke((EventHandler)delegate
		{
			ProgressBar.Value = e.ProgressPercentage;
			tsslStatus.Text = e.UserState.ToString();
		});
	}

	private void bgWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
	{
		if (e.Cancelled)
		{
			PowerManager.Instance.Backing = false;
			Thread.Sleep(1000);
			PowerManager.Instance.MC3 = false;
			Thread.Sleep(1000);
			MessageBox.Show(Lang.Txt("AddFormPower.VacuumLeakCheck"), Lang.Txt("AddFormIonSource.Warn"), MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
		}
		else
		{
			if (Vacuum.vacumm.ReadMode == 0)
			{
				Vacuum.Instance.NewVacuumOn();
			}
			Thread.Sleep(1000);
		}
		ProgressBar.Visible = false;
		tsslStatus.Visible = false;
		tsslStatus.Text = "";
		btnVaccum.Text = Lang.Txt("FormPower.GroupBox.Text6");
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		this.gbPower = new System.Windows.Forms.GroupBox();
		this.statusStrip1 = new System.Windows.Forms.StatusStrip();
		this.ProgressBar = new System.Windows.Forms.ToolStripProgressBar();
		this.tsslStatus = new System.Windows.Forms.ToolStripStatusLabel();
		this.groupBox2 = new System.Windows.Forms.GroupBox();
		this.groupBox4 = new System.Windows.Forms.GroupBox();
		this.btnVaccum = new System.Windows.Forms.Button();
		this.btnPowerOn = new System.Windows.Forms.Button();
		this.groupBox3 = new System.Windows.Forms.GroupBox();
		this.btnVaccumOff = new System.Windows.Forms.Button();
		this.btnPowerOff = new System.Windows.Forms.Button();
		this.groupBox1 = new System.Windows.Forms.GroupBox();
		this.gbP10 = new System.Windows.Forms.GroupBox();
		this.ledP10 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP10 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP10 = new System.Windows.Forms.RadioButton();
		this.gbP13 = new System.Windows.Forms.GroupBox();
		this.ledP13 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP13 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP13 = new System.Windows.Forms.RadioButton();
		this.gbP5 = new System.Windows.Forms.GroupBox();
		this.ledP5 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP5 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP5 = new System.Windows.Forms.RadioButton();
		this.gbP6 = new System.Windows.Forms.GroupBox();
		this.ledP6 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP6 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP6 = new System.Windows.Forms.RadioButton();
		this.gbP3 = new System.Windows.Forms.GroupBox();
		this.ledP3 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP3 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP3 = new System.Windows.Forms.RadioButton();
		this.gbP14 = new System.Windows.Forms.GroupBox();
		this.ledP14 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP14 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP14 = new System.Windows.Forms.RadioButton();
		this.gbP7 = new System.Windows.Forms.GroupBox();
		this.ledP7 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP7 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP7 = new System.Windows.Forms.RadioButton();
		this.gbP12 = new System.Windows.Forms.GroupBox();
		this.ledP12 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP12 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP12 = new System.Windows.Forms.RadioButton();
		this.gbP4 = new System.Windows.Forms.GroupBox();
		this.ledP4 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP4 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP4 = new System.Windows.Forms.RadioButton();
		this.gbP9 = new System.Windows.Forms.GroupBox();
		this.ledP9 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP9 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP9 = new System.Windows.Forms.RadioButton();
		this.gbP15 = new System.Windows.Forms.GroupBox();
		this.ledP15 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP15 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP15 = new System.Windows.Forms.RadioButton();
		this.gbP8 = new System.Windows.Forms.GroupBox();
		this.ledP8 = new System.Windows.Forms.PictureBox();
		this.gbP2 = new System.Windows.Forms.GroupBox();
		this.ledP2 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP2 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP2 = new System.Windows.Forms.RadioButton();
		this.gbP1 = new System.Windows.Forms.GroupBox();
		this.ledP1 = new System.Windows.Forms.PictureBox();
		this.rdbtnCloseP1 = new System.Windows.Forms.RadioButton();
		this.rdbtnOpenP1 = new System.Windows.Forms.RadioButton();
		this.bgWorker = new System.ComponentModel.BackgroundWorker();
		this.gbPower.SuspendLayout();
		this.statusStrip1.SuspendLayout();
		this.groupBox2.SuspendLayout();
		this.groupBox4.SuspendLayout();
		this.groupBox3.SuspendLayout();
		this.groupBox1.SuspendLayout();
		this.gbP10.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP10).BeginInit();
		this.gbP13.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP13).BeginInit();
		this.gbP5.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP5).BeginInit();
		this.gbP6.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP6).BeginInit();
		this.gbP3.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP3).BeginInit();
		this.gbP14.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP14).BeginInit();
		this.gbP7.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP7).BeginInit();
		this.gbP12.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP12).BeginInit();
		this.gbP4.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP4).BeginInit();
		this.gbP9.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP9).BeginInit();
		this.gbP15.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP15).BeginInit();
		this.gbP8.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP8).BeginInit();
		this.gbP2.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP2).BeginInit();
		this.gbP1.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP1).BeginInit();
		base.SuspendLayout();
		this.gbPower.Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right;
		this.gbPower.Controls.Add(this.statusStrip1);
		this.gbPower.Controls.Add(this.groupBox2);
		this.gbPower.Controls.Add(this.groupBox1);
		this.gbPower.Location = new System.Drawing.Point(0, 0);
		this.gbPower.Margin = new System.Windows.Forms.Padding(4);
		this.gbPower.Name = "gbPower";
		this.gbPower.Padding = new System.Windows.Forms.Padding(4);
		this.gbPower.Size = new System.Drawing.Size(1044, 635);
		this.gbPower.TabIndex = 16;
		this.gbPower.TabStop = false;
		this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
		this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[2] { this.ProgressBar, this.tsslStatus });
		this.statusStrip1.Location = new System.Drawing.Point(4, 603);
		this.statusStrip1.Name = "statusStrip1";
		this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 19, 0);
		this.statusStrip1.Size = new System.Drawing.Size(1036, 28);
		this.statusStrip1.TabIndex = 10;
		this.statusStrip1.Text = "statusStrip1";
		this.ProgressBar.Name = "ProgressBar";
		this.ProgressBar.Size = new System.Drawing.Size(267, 20);
		this.ProgressBar.Visible = false;
		this.tsslStatus.Name = "tsslStatus";
		this.tsslStatus.Size = new System.Drawing.Size(0, 22);
		this.tsslStatus.Visible = false;
		this.groupBox2.Controls.Add(this.groupBox4);
		this.groupBox2.Controls.Add(this.groupBox3);
		this.groupBox2.Location = new System.Drawing.Point(8, 372);
		this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox2.Name = "groupBox2";
		this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox2.Size = new System.Drawing.Size(861, 102);
		this.groupBox2.TabIndex = 9;
		this.groupBox2.TabStop = false;
		this.groupBox2.Text = "电源控制";
		this.groupBox4.Controls.Add(this.btnVaccum);
		this.groupBox4.Controls.Add(this.btnPowerOn);
		this.groupBox4.ForeColor = System.Drawing.SystemColors.Highlight;
		this.groupBox4.Location = new System.Drawing.Point(67, 14);
		this.groupBox4.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox4.Name = "groupBox4";
		this.groupBox4.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox4.Size = new System.Drawing.Size(363, 75);
		this.groupBox4.TabIndex = 4;
		this.groupBox4.TabStop = false;
		this.groupBox4.Text = "上电";
		this.btnVaccum.Location = new System.Drawing.Point(219, 18);
		this.btnVaccum.Margin = new System.Windows.Forms.Padding(4);
		this.btnVaccum.Name = "btnVaccum";
		this.btnVaccum.Size = new System.Drawing.Size(123, 48);
		this.btnVaccum.TabIndex = 0;
		this.btnVaccum.Text = "预抽真空";
		this.btnVaccum.UseVisualStyleBackColor = true;
		this.btnVaccum.Click += new System.EventHandler(btnVaccum_Click);
		this.btnPowerOn.Location = new System.Drawing.Point(57, 18);
		this.btnPowerOn.Margin = new System.Windows.Forms.Padding(4);
		this.btnPowerOn.Name = "btnPowerOn";
		this.btnPowerOn.Size = new System.Drawing.Size(123, 48);
		this.btnPowerOn.TabIndex = 0;
		this.btnPowerOn.Text = "仪器上电";
		this.btnPowerOn.UseVisualStyleBackColor = true;
		this.btnPowerOn.Click += new System.EventHandler(btnPowerOn_Click);
		this.groupBox3.Controls.Add(this.btnVaccumOff);
		this.groupBox3.Controls.Add(this.btnPowerOff);
		this.groupBox3.ForeColor = System.Drawing.SystemColors.Highlight;
		this.groupBox3.Location = new System.Drawing.Point(479, 14);
		this.groupBox3.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox3.Name = "groupBox3";
		this.groupBox3.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox3.Size = new System.Drawing.Size(336, 74);
		this.groupBox3.TabIndex = 3;
		this.groupBox3.TabStop = false;
		this.groupBox3.Text = "断电";
		this.btnVaccumOff.Location = new System.Drawing.Point(47, 18);
		this.btnVaccumOff.Margin = new System.Windows.Forms.Padding(4);
		this.btnVaccumOff.Name = "btnVaccumOff";
		this.btnVaccumOff.Size = new System.Drawing.Size(123, 48);
		this.btnVaccumOff.TabIndex = 2;
		this.btnVaccumOff.Text = "卸载真空";
		this.btnVaccumOff.UseVisualStyleBackColor = true;
		this.btnVaccumOff.Click += new System.EventHandler(btnVaccumOff_Click);
		this.btnPowerOff.Location = new System.Drawing.Point(193, 18);
		this.btnPowerOff.Margin = new System.Windows.Forms.Padding(4);
		this.btnPowerOff.Name = "btnPowerOff";
		this.btnPowerOff.Size = new System.Drawing.Size(123, 48);
		this.btnPowerOff.TabIndex = 1;
		this.btnPowerOff.Text = "仪器断电";
		this.btnPowerOff.UseVisualStyleBackColor = true;
		this.btnPowerOff.Click += new System.EventHandler(btnPowerOff_Click);
		this.groupBox1.Controls.Add(this.gbP10);
		this.groupBox1.Controls.Add(this.gbP13);
		this.groupBox1.Controls.Add(this.gbP5);
		this.groupBox1.Controls.Add(this.gbP6);
		this.groupBox1.Controls.Add(this.gbP3);
		this.groupBox1.Controls.Add(this.gbP14);
		this.groupBox1.Controls.Add(this.gbP7);
		this.groupBox1.Controls.Add(this.gbP12);
		this.groupBox1.Controls.Add(this.gbP4);
		this.groupBox1.Controls.Add(this.gbP9);
		this.groupBox1.Controls.Add(this.gbP15);
		this.groupBox1.Controls.Add(this.gbP8);
		this.groupBox1.Controls.Add(this.gbP2);
		this.groupBox1.Controls.Add(this.gbP1);
		this.groupBox1.Location = new System.Drawing.Point(8, 25);
		this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
		this.groupBox1.Name = "groupBox1";
		this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
		this.groupBox1.Size = new System.Drawing.Size(861, 340);
		this.groupBox1.TabIndex = 8;
		this.groupBox1.TabStop = false;
		this.groupBox1.Text = "电源状态";
		this.gbP10.Controls.Add(this.ledP10);
		this.gbP10.Controls.Add(this.rdbtnCloseP10);
		this.gbP10.Controls.Add(this.rdbtnOpenP10);
		this.gbP10.Location = new System.Drawing.Point(299, 26);
		this.gbP10.Margin = new System.Windows.Forms.Padding(4);
		this.gbP10.Name = "gbP10";
		this.gbP10.Padding = new System.Windows.Forms.Padding(4);
		this.gbP10.Size = new System.Drawing.Size(236, 55);
		this.gbP10.TabIndex = 7;
		this.gbP10.TabStop = false;
		this.gbP10.Text = "P10";
		this.ledP10.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP10.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP10.Location = new System.Drawing.Point(180, 22);
		this.ledP10.Margin = new System.Windows.Forms.Padding(4);
		this.ledP10.Name = "ledP10";
		this.ledP10.Size = new System.Drawing.Size(27, 25);
		this.ledP10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP10.TabIndex = 5;
		this.ledP10.TabStop = false;
		this.rdbtnCloseP10.AutoSize = true;
		this.rdbtnCloseP10.Checked = true;
		this.rdbtnCloseP10.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP10.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP10.Name = "rdbtnCloseP10";
		this.rdbtnCloseP10.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP10.TabIndex = 1;
		this.rdbtnCloseP10.TabStop = true;
		this.rdbtnCloseP10.Text = "关";
		this.rdbtnCloseP10.UseVisualStyleBackColor = true;
		this.rdbtnOpenP10.AutoSize = true;
		this.rdbtnOpenP10.Location = new System.Drawing.Point(32, 25);
		this.rdbtnOpenP10.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP10.Name = "rdbtnOpenP10";
		this.rdbtnOpenP10.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP10.TabIndex = 0;
		this.rdbtnOpenP10.Text = "开";
		this.rdbtnOpenP10.UseVisualStyleBackColor = true;
		this.gbP13.Controls.Add(this.ledP13);
		this.gbP13.Controls.Add(this.rdbtnCloseP13);
		this.gbP13.Controls.Add(this.rdbtnOpenP13);
		this.gbP13.Location = new System.Drawing.Point(299, 209);
		this.gbP13.Margin = new System.Windows.Forms.Padding(4);
		this.gbP13.Name = "gbP13";
		this.gbP13.Padding = new System.Windows.Forms.Padding(4);
		this.gbP13.Size = new System.Drawing.Size(236, 55);
		this.gbP13.TabIndex = 6;
		this.gbP13.TabStop = false;
		this.gbP13.Text = "P13";
		this.ledP13.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP13.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP13.Location = new System.Drawing.Point(180, 19);
		this.ledP13.Margin = new System.Windows.Forms.Padding(4);
		this.ledP13.Name = "ledP13";
		this.ledP13.Size = new System.Drawing.Size(27, 25);
		this.ledP13.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP13.TabIndex = 5;
		this.ledP13.TabStop = false;
		this.ledP13.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP13.AutoSize = true;
		this.rdbtnCloseP13.Checked = true;
		this.rdbtnCloseP13.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP13.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP13.Name = "rdbtnCloseP13";
		this.rdbtnCloseP13.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP13.TabIndex = 1;
		this.rdbtnCloseP13.TabStop = true;
		this.rdbtnCloseP13.Text = "关";
		this.rdbtnCloseP13.UseVisualStyleBackColor = true;
		this.rdbtnOpenP13.AutoSize = true;
		this.rdbtnOpenP13.Location = new System.Drawing.Point(32, 25);
		this.rdbtnOpenP13.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP13.Name = "rdbtnOpenP13";
		this.rdbtnOpenP13.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP13.TabIndex = 0;
		this.rdbtnOpenP13.Text = "开";
		this.rdbtnOpenP13.UseVisualStyleBackColor = true;
		this.gbP5.Controls.Add(this.ledP5);
		this.gbP5.Controls.Add(this.rdbtnCloseP5);
		this.gbP5.Controls.Add(this.rdbtnOpenP5);
		this.gbP5.Location = new System.Drawing.Point(17, 274);
		this.gbP5.Margin = new System.Windows.Forms.Padding(4);
		this.gbP5.Name = "gbP5";
		this.gbP5.Padding = new System.Windows.Forms.Padding(4);
		this.gbP5.Size = new System.Drawing.Size(236, 55);
		this.gbP5.TabIndex = 6;
		this.gbP5.TabStop = false;
		this.gbP5.Text = "P5";
		this.ledP5.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP5.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP5.Location = new System.Drawing.Point(192, 22);
		this.ledP5.Margin = new System.Windows.Forms.Padding(4);
		this.ledP5.Name = "ledP5";
		this.ledP5.Size = new System.Drawing.Size(27, 25);
		this.ledP5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP5.TabIndex = 5;
		this.ledP5.TabStop = false;
		this.ledP5.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP5.AutoSize = true;
		this.rdbtnCloseP5.Checked = true;
		this.rdbtnCloseP5.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP5.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP5.Name = "rdbtnCloseP5";
		this.rdbtnCloseP5.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP5.TabIndex = 1;
		this.rdbtnCloseP5.TabStop = true;
		this.rdbtnCloseP5.Text = "关";
		this.rdbtnCloseP5.UseVisualStyleBackColor = true;
		this.rdbtnOpenP5.AutoSize = true;
		this.rdbtnOpenP5.Location = new System.Drawing.Point(34, 25);
		this.rdbtnOpenP5.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP5.Name = "rdbtnOpenP5";
		this.rdbtnOpenP5.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP5.TabIndex = 0;
		this.rdbtnOpenP5.Text = "开";
		this.rdbtnOpenP5.UseVisualStyleBackColor = true;
		this.gbP6.Controls.Add(this.ledP6);
		this.gbP6.Controls.Add(this.rdbtnCloseP6);
		this.gbP6.Controls.Add(this.rdbtnOpenP6);
		this.gbP6.Location = new System.Drawing.Point(579, 25);
		this.gbP6.Margin = new System.Windows.Forms.Padding(4);
		this.gbP6.Name = "gbP6";
		this.gbP6.Padding = new System.Windows.Forms.Padding(4);
		this.gbP6.Size = new System.Drawing.Size(236, 55);
		this.gbP6.TabIndex = 2;
		this.gbP6.TabStop = false;
		this.gbP6.Text = "P6";
		this.ledP6.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP6.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP6.Location = new System.Drawing.Point(189, 19);
		this.ledP6.Margin = new System.Windows.Forms.Padding(4);
		this.ledP6.Name = "ledP6";
		this.ledP6.Size = new System.Drawing.Size(27, 25);
		this.ledP6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP6.TabIndex = 6;
		this.ledP6.TabStop = false;
		this.ledP6.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP6.AutoSize = true;
		this.rdbtnCloseP6.Checked = true;
		this.rdbtnCloseP6.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP6.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP6.Name = "rdbtnCloseP6";
		this.rdbtnCloseP6.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP6.TabIndex = 1;
		this.rdbtnCloseP6.TabStop = true;
		this.rdbtnCloseP6.Text = "关";
		this.rdbtnCloseP6.UseVisualStyleBackColor = true;
		this.rdbtnOpenP6.AutoSize = true;
		this.rdbtnOpenP6.Location = new System.Drawing.Point(32, 25);
		this.rdbtnOpenP6.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP6.Name = "rdbtnOpenP6";
		this.rdbtnOpenP6.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP6.TabIndex = 0;
		this.rdbtnOpenP6.Text = "开";
		this.rdbtnOpenP6.UseVisualStyleBackColor = true;
		this.gbP3.Controls.Add(this.ledP3);
		this.gbP3.Controls.Add(this.rdbtnCloseP3);
		this.gbP3.Controls.Add(this.rdbtnOpenP3);
		this.gbP3.Location = new System.Drawing.Point(17, 151);
		this.gbP3.Margin = new System.Windows.Forms.Padding(4);
		this.gbP3.Name = "gbP3";
		this.gbP3.Padding = new System.Windows.Forms.Padding(4);
		this.gbP3.Size = new System.Drawing.Size(236, 55);
		this.gbP3.TabIndex = 5;
		this.gbP3.TabStop = false;
		this.gbP3.Text = "P3";
		this.ledP3.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP3.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP3.Location = new System.Drawing.Point(192, 22);
		this.ledP3.Margin = new System.Windows.Forms.Padding(4);
		this.ledP3.Name = "ledP3";
		this.ledP3.Size = new System.Drawing.Size(27, 25);
		this.ledP3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP3.TabIndex = 4;
		this.ledP3.TabStop = false;
		this.ledP3.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP3.AutoSize = true;
		this.rdbtnCloseP3.Checked = true;
		this.rdbtnCloseP3.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP3.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP3.Name = "rdbtnCloseP3";
		this.rdbtnCloseP3.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP3.TabIndex = 1;
		this.rdbtnCloseP3.TabStop = true;
		this.rdbtnCloseP3.Text = "关";
		this.rdbtnCloseP3.UseVisualStyleBackColor = true;
		this.rdbtnOpenP3.AutoSize = true;
		this.rdbtnOpenP3.Location = new System.Drawing.Point(34, 25);
		this.rdbtnOpenP3.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP3.Name = "rdbtnOpenP3";
		this.rdbtnOpenP3.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP3.TabIndex = 0;
		this.rdbtnOpenP3.Text = "开";
		this.rdbtnOpenP3.UseVisualStyleBackColor = true;
		this.gbP14.Controls.Add(this.ledP14);
		this.gbP14.Controls.Add(this.rdbtnCloseP14);
		this.gbP14.Controls.Add(this.rdbtnOpenP14);
		this.gbP14.Location = new System.Drawing.Point(299, 272);
		this.gbP14.Margin = new System.Windows.Forms.Padding(4);
		this.gbP14.Name = "gbP14";
		this.gbP14.Padding = new System.Windows.Forms.Padding(4);
		this.gbP14.Size = new System.Drawing.Size(236, 55);
		this.gbP14.TabIndex = 2;
		this.gbP14.TabStop = false;
		this.gbP14.Text = "P14";
		this.ledP14.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP14.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP14.Location = new System.Drawing.Point(180, 22);
		this.ledP14.Margin = new System.Windows.Forms.Padding(4);
		this.ledP14.Name = "ledP14";
		this.ledP14.Size = new System.Drawing.Size(27, 25);
		this.ledP14.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP14.TabIndex = 7;
		this.ledP14.TabStop = false;
		this.ledP14.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP14.AutoSize = true;
		this.rdbtnCloseP14.Checked = true;
		this.rdbtnCloseP14.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP14.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP14.Name = "rdbtnCloseP14";
		this.rdbtnCloseP14.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP14.TabIndex = 1;
		this.rdbtnCloseP14.TabStop = true;
		this.rdbtnCloseP14.Text = "关";
		this.rdbtnCloseP14.UseVisualStyleBackColor = true;
		this.rdbtnOpenP14.AutoSize = true;
		this.rdbtnOpenP14.Location = new System.Drawing.Point(32, 25);
		this.rdbtnOpenP14.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP14.Name = "rdbtnOpenP14";
		this.rdbtnOpenP14.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP14.TabIndex = 0;
		this.rdbtnOpenP14.Text = "开";
		this.rdbtnOpenP14.UseVisualStyleBackColor = true;
		this.gbP7.Controls.Add(this.ledP7);
		this.gbP7.Controls.Add(this.rdbtnCloseP7);
		this.gbP7.Controls.Add(this.rdbtnOpenP7);
		this.gbP7.Location = new System.Drawing.Point(579, 88);
		this.gbP7.Margin = new System.Windows.Forms.Padding(4);
		this.gbP7.Name = "gbP7";
		this.gbP7.Padding = new System.Windows.Forms.Padding(4);
		this.gbP7.Size = new System.Drawing.Size(236, 55);
		this.gbP7.TabIndex = 2;
		this.gbP7.TabStop = false;
		this.gbP7.Text = "P7";
		this.ledP7.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP7.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP7.Location = new System.Drawing.Point(189, 19);
		this.ledP7.Margin = new System.Windows.Forms.Padding(4);
		this.ledP7.Name = "ledP7";
		this.ledP7.Size = new System.Drawing.Size(27, 25);
		this.ledP7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP7.TabIndex = 7;
		this.ledP7.TabStop = false;
		this.ledP7.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP7.AutoSize = true;
		this.rdbtnCloseP7.Checked = true;
		this.rdbtnCloseP7.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP7.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP7.Name = "rdbtnCloseP7";
		this.rdbtnCloseP7.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP7.TabIndex = 1;
		this.rdbtnCloseP7.TabStop = true;
		this.rdbtnCloseP7.Text = "关";
		this.rdbtnCloseP7.UseVisualStyleBackColor = true;
		this.rdbtnOpenP7.AutoSize = true;
		this.rdbtnOpenP7.Location = new System.Drawing.Point(32, 25);
		this.rdbtnOpenP7.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP7.Name = "rdbtnOpenP7";
		this.rdbtnOpenP7.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP7.TabIndex = 0;
		this.rdbtnOpenP7.Text = "开";
		this.rdbtnOpenP7.UseVisualStyleBackColor = true;
		this.gbP12.Controls.Add(this.ledP12);
		this.gbP12.Controls.Add(this.rdbtnCloseP12);
		this.gbP12.Controls.Add(this.rdbtnOpenP12);
		this.gbP12.Location = new System.Drawing.Point(299, 148);
		this.gbP12.Margin = new System.Windows.Forms.Padding(4);
		this.gbP12.Name = "gbP12";
		this.gbP12.Padding = new System.Windows.Forms.Padding(4);
		this.gbP12.Size = new System.Drawing.Size(236, 55);
		this.gbP12.TabIndex = 2;
		this.gbP12.TabStop = false;
		this.gbP12.Text = "P12";
		this.ledP12.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP12.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP12.Location = new System.Drawing.Point(180, 22);
		this.ledP12.Margin = new System.Windows.Forms.Padding(4);
		this.ledP12.Name = "ledP12";
		this.ledP12.Size = new System.Drawing.Size(27, 25);
		this.ledP12.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP12.TabIndex = 5;
		this.ledP12.TabStop = false;
		this.ledP12.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP12.AutoSize = true;
		this.rdbtnCloseP12.Checked = true;
		this.rdbtnCloseP12.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP12.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP12.Name = "rdbtnCloseP12";
		this.rdbtnCloseP12.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP12.TabIndex = 1;
		this.rdbtnCloseP12.TabStop = true;
		this.rdbtnCloseP12.Text = "关";
		this.rdbtnCloseP12.UseVisualStyleBackColor = true;
		this.rdbtnOpenP12.AutoSize = true;
		this.rdbtnOpenP12.Location = new System.Drawing.Point(32, 25);
		this.rdbtnOpenP12.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP12.Name = "rdbtnOpenP12";
		this.rdbtnOpenP12.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP12.TabIndex = 0;
		this.rdbtnOpenP12.Text = "开";
		this.rdbtnOpenP12.UseVisualStyleBackColor = true;
		this.gbP4.Controls.Add(this.ledP4);
		this.gbP4.Controls.Add(this.rdbtnCloseP4);
		this.gbP4.Controls.Add(this.rdbtnOpenP4);
		this.gbP4.Location = new System.Drawing.Point(17, 212);
		this.gbP4.Margin = new System.Windows.Forms.Padding(4);
		this.gbP4.Name = "gbP4";
		this.gbP4.Padding = new System.Windows.Forms.Padding(4);
		this.gbP4.Size = new System.Drawing.Size(236, 55);
		this.gbP4.TabIndex = 2;
		this.gbP4.TabStop = false;
		this.gbP4.Text = "P4";
		this.ledP4.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP4.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP4.Location = new System.Drawing.Point(192, 19);
		this.ledP4.Margin = new System.Windows.Forms.Padding(4);
		this.ledP4.Name = "ledP4";
		this.ledP4.Size = new System.Drawing.Size(27, 25);
		this.ledP4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP4.TabIndex = 5;
		this.ledP4.TabStop = false;
		this.ledP4.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP4.AutoSize = true;
		this.rdbtnCloseP4.Checked = true;
		this.rdbtnCloseP4.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP4.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP4.Name = "rdbtnCloseP4";
		this.rdbtnCloseP4.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP4.TabIndex = 1;
		this.rdbtnCloseP4.TabStop = true;
		this.rdbtnCloseP4.Text = "关";
		this.rdbtnCloseP4.UseVisualStyleBackColor = true;
		this.rdbtnOpenP4.AutoSize = true;
		this.rdbtnOpenP4.Location = new System.Drawing.Point(34, 25);
		this.rdbtnOpenP4.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP4.Name = "rdbtnOpenP4";
		this.rdbtnOpenP4.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP4.TabIndex = 0;
		this.rdbtnOpenP4.Text = "开";
		this.rdbtnOpenP4.UseVisualStyleBackColor = true;
		this.gbP9.Controls.Add(this.ledP9);
		this.gbP9.Controls.Add(this.rdbtnCloseP9);
		this.gbP9.Controls.Add(this.rdbtnOpenP9);
		this.gbP9.Location = new System.Drawing.Point(579, 211);
		this.gbP9.Margin = new System.Windows.Forms.Padding(4);
		this.gbP9.Name = "gbP9";
		this.gbP9.Padding = new System.Windows.Forms.Padding(4);
		this.gbP9.Size = new System.Drawing.Size(236, 55);
		this.gbP9.TabIndex = 2;
		this.gbP9.TabStop = false;
		this.gbP9.Text = "P9";
		this.ledP9.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP9.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP9.Location = new System.Drawing.Point(189, 17);
		this.ledP9.Margin = new System.Windows.Forms.Padding(4);
		this.ledP9.Name = "ledP9";
		this.ledP9.Size = new System.Drawing.Size(27, 25);
		this.ledP9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP9.TabIndex = 4;
		this.ledP9.TabStop = false;
		this.ledP9.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP9.AutoSize = true;
		this.rdbtnCloseP9.Checked = true;
		this.rdbtnCloseP9.Location = new System.Drawing.Point(104, 22);
		this.rdbtnCloseP9.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP9.Name = "rdbtnCloseP9";
		this.rdbtnCloseP9.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP9.TabIndex = 1;
		this.rdbtnCloseP9.TabStop = true;
		this.rdbtnCloseP9.Text = "关";
		this.rdbtnCloseP9.UseVisualStyleBackColor = true;
		this.rdbtnOpenP9.AutoSize = true;
		this.rdbtnOpenP9.Location = new System.Drawing.Point(32, 22);
		this.rdbtnOpenP9.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP9.Name = "rdbtnOpenP9";
		this.rdbtnOpenP9.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP9.TabIndex = 0;
		this.rdbtnOpenP9.Text = "开";
		this.rdbtnOpenP9.UseVisualStyleBackColor = true;
		this.gbP15.Controls.Add(this.ledP15);
		this.gbP15.Controls.Add(this.rdbtnCloseP15);
		this.gbP15.Controls.Add(this.rdbtnOpenP15);
		this.gbP15.Location = new System.Drawing.Point(579, 150);
		this.gbP15.Margin = new System.Windows.Forms.Padding(4);
		this.gbP15.Name = "gbP15";
		this.gbP15.Padding = new System.Windows.Forms.Padding(4);
		this.gbP15.Size = new System.Drawing.Size(236, 55);
		this.gbP15.TabIndex = 2;
		this.gbP15.TabStop = false;
		this.gbP15.Text = "P15";
		this.ledP15.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP15.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP15.Location = new System.Drawing.Point(189, 19);
		this.ledP15.Margin = new System.Windows.Forms.Padding(4);
		this.ledP15.Name = "ledP15";
		this.ledP15.Size = new System.Drawing.Size(27, 25);
		this.ledP15.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP15.TabIndex = 4;
		this.ledP15.TabStop = false;
		this.ledP15.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP15.AutoSize = true;
		this.rdbtnCloseP15.Checked = true;
		this.rdbtnCloseP15.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP15.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP15.Name = "rdbtnCloseP15";
		this.rdbtnCloseP15.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP15.TabIndex = 1;
		this.rdbtnCloseP15.TabStop = true;
		this.rdbtnCloseP15.Text = "关";
		this.rdbtnCloseP15.UseVisualStyleBackColor = true;
		this.rdbtnOpenP15.AutoSize = true;
		this.rdbtnOpenP15.Location = new System.Drawing.Point(32, 25);
		this.rdbtnOpenP15.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP15.Name = "rdbtnOpenP15";
		this.rdbtnOpenP15.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP15.TabIndex = 0;
		this.rdbtnOpenP15.Text = "开";
		this.rdbtnOpenP15.UseVisualStyleBackColor = true;
		this.gbP8.Controls.Add(this.ledP8);
		this.gbP8.Location = new System.Drawing.Point(299, 89);
		this.gbP8.Margin = new System.Windows.Forms.Padding(4);
		this.gbP8.Name = "gbP8";
		this.gbP8.Padding = new System.Windows.Forms.Padding(4);
		this.gbP8.Size = new System.Drawing.Size(236, 55);
		this.gbP8.TabIndex = 2;
		this.gbP8.TabStop = false;
		this.gbP8.Text = "P8";
		this.ledP8.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP8.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP8.Location = new System.Drawing.Point(180, 22);
		this.ledP8.Margin = new System.Windows.Forms.Padding(4);
		this.ledP8.Name = "ledP8";
		this.ledP8.Size = new System.Drawing.Size(27, 25);
		this.ledP8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP8.TabIndex = 4;
		this.ledP8.TabStop = false;
		this.ledP8.Click += new System.EventHandler(SingleClick);
		this.gbP2.Controls.Add(this.ledP2);
		this.gbP2.Controls.Add(this.rdbtnCloseP2);
		this.gbP2.Controls.Add(this.rdbtnOpenP2);
		this.gbP2.Location = new System.Drawing.Point(17, 89);
		this.gbP2.Margin = new System.Windows.Forms.Padding(4);
		this.gbP2.Name = "gbP2";
		this.gbP2.Padding = new System.Windows.Forms.Padding(4);
		this.gbP2.Size = new System.Drawing.Size(236, 55);
		this.gbP2.TabIndex = 1;
		this.gbP2.TabStop = false;
		this.gbP2.Text = "P2";
		this.ledP2.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP2.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP2.Location = new System.Drawing.Point(192, 19);
		this.ledP2.Margin = new System.Windows.Forms.Padding(4);
		this.ledP2.Name = "ledP2";
		this.ledP2.Size = new System.Drawing.Size(27, 25);
		this.ledP2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP2.TabIndex = 3;
		this.ledP2.TabStop = false;
		this.ledP2.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP2.AutoSize = true;
		this.rdbtnCloseP2.Checked = true;
		this.rdbtnCloseP2.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP2.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP2.Name = "rdbtnCloseP2";
		this.rdbtnCloseP2.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP2.TabIndex = 1;
		this.rdbtnCloseP2.TabStop = true;
		this.rdbtnCloseP2.Text = "关";
		this.rdbtnCloseP2.UseVisualStyleBackColor = true;
		this.rdbtnOpenP2.AutoSize = true;
		this.rdbtnOpenP2.Location = new System.Drawing.Point(34, 25);
		this.rdbtnOpenP2.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP2.Name = "rdbtnOpenP2";
		this.rdbtnOpenP2.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP2.TabIndex = 0;
		this.rdbtnOpenP2.Text = "开";
		this.rdbtnOpenP2.UseVisualStyleBackColor = true;
		this.gbP1.Controls.Add(this.ledP1);
		this.gbP1.Controls.Add(this.rdbtnCloseP1);
		this.gbP1.Controls.Add(this.rdbtnOpenP1);
		this.gbP1.Location = new System.Drawing.Point(17, 26);
		this.gbP1.Margin = new System.Windows.Forms.Padding(4);
		this.gbP1.Name = "gbP1";
		this.gbP1.Padding = new System.Windows.Forms.Padding(4);
		this.gbP1.Size = new System.Drawing.Size(236, 55);
		this.gbP1.TabIndex = 0;
		this.gbP1.TabStop = false;
		this.gbP1.Text = "P1";
		this.ledP1.Cursor = System.Windows.Forms.Cursors.Hand;
		this.ledP1.Image = ICP_MS.Plugin.Advance.Properties.Resources.led_Gray;
		this.ledP1.Location = new System.Drawing.Point(192, 19);
		this.ledP1.Margin = new System.Windows.Forms.Padding(4);
		this.ledP1.Name = "ledP1";
		this.ledP1.Size = new System.Drawing.Size(27, 25);
		this.ledP1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
		this.ledP1.TabIndex = 2;
		this.ledP1.TabStop = false;
		this.ledP1.Click += new System.EventHandler(SingleClick);
		this.rdbtnCloseP1.AutoSize = true;
		this.rdbtnCloseP1.Checked = true;
		this.rdbtnCloseP1.Location = new System.Drawing.Point(104, 25);
		this.rdbtnCloseP1.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnCloseP1.Name = "rdbtnCloseP1";
		this.rdbtnCloseP1.Size = new System.Drawing.Size(43, 19);
		this.rdbtnCloseP1.TabIndex = 1;
		this.rdbtnCloseP1.TabStop = true;
		this.rdbtnCloseP1.Text = "关";
		this.rdbtnCloseP1.UseVisualStyleBackColor = true;
		this.rdbtnOpenP1.AutoSize = true;
		this.rdbtnOpenP1.Location = new System.Drawing.Point(34, 25);
		this.rdbtnOpenP1.Margin = new System.Windows.Forms.Padding(4);
		this.rdbtnOpenP1.Name = "rdbtnOpenP1";
		this.rdbtnOpenP1.Size = new System.Drawing.Size(43, 19);
		this.rdbtnOpenP1.TabIndex = 0;
		this.rdbtnOpenP1.Text = "开";
		this.rdbtnOpenP1.UseVisualStyleBackColor = true;
		this.bgWorker.WorkerReportsProgress = true;
		this.bgWorker.WorkerSupportsCancellation = true;
		this.bgWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(bgWorker_DoWork);
		this.bgWorker.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(bgWorker_ProgressChanged);
		this.bgWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(bgWorker_RunWorkerCompleted);
		base.AutoScaleDimensions = new System.Drawing.SizeF(8f, 15f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(1044, 635);
		base.Controls.Add(this.gbPower);
		base.Margin = new System.Windows.Forms.Padding(4);
		base.Name = "FormPower";
		base.ShowIcon = false;
		this.Text = "FormPower";
		base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FormPower_FormClosing);
		base.Load += new System.EventHandler(FormPower_Load);
		this.gbPower.ResumeLayout(false);
		this.gbPower.PerformLayout();
		this.statusStrip1.ResumeLayout(false);
		this.statusStrip1.PerformLayout();
		this.groupBox2.ResumeLayout(false);
		this.groupBox4.ResumeLayout(false);
		this.groupBox3.ResumeLayout(false);
		this.groupBox1.ResumeLayout(false);
		this.gbP10.ResumeLayout(false);
		this.gbP10.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP10).EndInit();
		this.gbP13.ResumeLayout(false);
		this.gbP13.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP13).EndInit();
		this.gbP5.ResumeLayout(false);
		this.gbP5.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP5).EndInit();
		this.gbP6.ResumeLayout(false);
		this.gbP6.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP6).EndInit();
		this.gbP3.ResumeLayout(false);
		this.gbP3.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP3).EndInit();
		this.gbP14.ResumeLayout(false);
		this.gbP14.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP14).EndInit();
		this.gbP7.ResumeLayout(false);
		this.gbP7.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP7).EndInit();
		this.gbP12.ResumeLayout(false);
		this.gbP12.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP12).EndInit();
		this.gbP4.ResumeLayout(false);
		this.gbP4.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP4).EndInit();
		this.gbP9.ResumeLayout(false);
		this.gbP9.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP9).EndInit();
		this.gbP15.ResumeLayout(false);
		this.gbP15.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP15).EndInit();
		this.gbP8.ResumeLayout(false);
		((System.ComponentModel.ISupportInitialize)this.ledP8).EndInit();
		this.gbP2.ResumeLayout(false);
		this.gbP2.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP2).EndInit();
		this.gbP1.ResumeLayout(false);
		this.gbP1.PerformLayout();
		((System.ComponentModel.ISupportInitialize)this.ledP1).EndInit();
		base.ResumeLayout(false);
	}
}
